package com.ys.web.hjzf.service;

import com.ys.web.hjzf.mapper.HjzfMapper;
import com.ys.web.mobao.model.po.BindCard;
import com.ys.web.pay.model.vo.UserBank;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HjzfService {

    @Autowired
    private HjzfMapper hjzfMapper;

    public int getUserBankCheckCardNo(String cardNo) {
        return hjzfMapper.getUserBankCheckCardNo(cardNo);
    }

    public int saveUserBank(BindCard bindCard) {
        return hjzfMapper.saveUserBank(bindCard);
    }

    public int delUserBankByCardToken(long uid, String cardToken) {
        return hjzfMapper.delUserBankByCardToken(uid,cardToken);
    }

    public List<UserBank> getUserBankByUserId(long uid) {
        return hjzfMapper.getUserBankByUserId(uid);
    }

    public int updateUserBank(BindCard bindCard) {
        return hjzfMapper.updateUserBank(bindCard);
    }
}
